home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga News 95
/
Amiga News 95.iso
/
dpat
/
dpat62
/
chipmemfirst
/
cmf_strings.asm
< prev
next >
Wrap
Assembly Source File
|
1994-04-30
|
4KB
|
179 lines
IFND CMF_STRINGS_I
CMF_STRINGS_I SET 1
;-----------------------------------------------------------------------------
* This file was created automatically by CatComp.
* Do NOT edit by hand!
*
IFND EXEC_TYPES_I
INCLUDE 'exec/types.i'
ENDC
IFD CATCOMP_ARRAY
CATCOMP_NUMBERS SET 1
CATCOMP_STRINGS SET 1
ENDC
IFD CATCOMP_CODE
CATCOMP_BLOCK SET 1
ENDC
;-----------------------------------------------------------------------------
IFD CATCOMP_NUMBERS
INTUITION_ERROR EQU 0
DOS_ERROR EQU 1
ICON_ERROR EQU 2
MSG_ALREADY EQU 3
MSG_NOMEM EQU 4
MSG_INSTALLED EQU 5
MSG_NOINSTALLED EQU 6
MSG_REMOVED EQU 7
MSG_NOFASTRAM EQU 8
MSG_INVALIDE EQU 9
MSG_INFERIOR EQU 10
ENDC ; CATCOMP_NUMBERS
;-----------------------------------------------------------------------------
IFD CATCOMP_STRINGS
INTUITION_ERROR_STR: DC.B 'Can',39,'t find intuition.library.',10,10,$00
DOS_ERROR_STR: DC.B 'Can',39,'t find dos.library.',10,10,$00
ICON_ERROR_STR: DC.B 'Can',39,'t find icon.library.',10,10,$00
MSG_ALREADY_STR: DC.B 'ChipMemFist is already running.',10,10,$00
MSG_NOMEM_STR: DC.B 'No memory for romtag.',10,10,$00
MSG_INSTALLED_STR: DC.B 'ChipMemFirst is ready, reboot please.',10,10,$00
MSG_NOINSTALLED_STR: DC.B 'ChipMemfirst is not installed.',10,10,$00
MSG_REMOVED_STR: DC.B 'ChipMemFirst removed, reboot please.',10,10,$00
MSG_NOFASTRAM_STR: DC.B 'Sorry, no fast mem.',10,10,$00
MSG_INVALIDE_STR: DC.B 'Your prioritie is not a valide decimal number.',10,10,' ',$00
MSG_INFERIOR_STR: DC.B 'Your priorite is lower than fast ram prioritie.',10,10,' ',$00
ENDC ; CATCOMP_STRINGS
;-----------------------------------------------------------------------------
IFD CATCOMP_ARRAY
STRUCTURE CatCompArrayType,0
LONG cca_ID
APTR cca_Str
LABEL CatCompArrayType_SIZEOF
CNOP 0,4
CatCompArray:
AS0: DC.L INTUITION_ERROR,INTUITION_ERROR_STR
AS1: DC.L DOS_ERROR,DOS_ERROR_STR
AS2: DC.L ICON_ERROR,ICON_ERROR_STR
AS3: DC.L MSG_ALREADY,MSG_ALREADY_STR
AS4: DC.L MSG_NOMEM,MSG_NOMEM_STR
AS5: DC.L MSG_INSTALLED,MSG_INSTALLED_STR
AS6: DC.L MSG_NOINSTALLED,MSG_NOINSTALLED_STR
AS7: DC.L MSG_REMOVED,MSG_REMOVED_STR
AS8: DC.L MSG_NOFASTRAM,MSG_NOFASTRAM_STR
AS9: DC.L MSG_INVALIDE,MSG_INVALIDE_STR
AS10: DC.L MSG_INFERIOR,MSG_INFERIOR_STR
ENDC ; CATCOMP_ARRAY
;-----------------------------------------------------------------------------
IFD CATCOMP_BLOCK
CatCompBlock:
DC.L $0
DC.W $20
DC.B 'Can',39,'t find intuition.library.',10,10,$00
DC.L $1
DC.W $1A
DC.B 'Can',39,'t find dos.library.',10,10,$00
DC.L $2
DC.W $1C
DC.B 'Can',39,'t find icon.library.',10,10,$00,$00
DC.L $3
DC.W $22
DC.B 'ChipMemFist is already running.',10,10,$00
DC.L $4
DC.W $18
DC.B 'No memory for romtag.',10,10,$00
DC.L $5
DC.W $28
DC.B 'ChipMemFirst is ready, reboot please.',10,10,$00
DC.L $6
DC.W $22
DC.B 'ChipMemfirst is not installed.',10,10,$00,$00
DC.L $7
DC.W $28
DC.B 'ChipMemFirst removed, reboot please.',10,10,$00,$00
DC.L $8
DC.W $16
DC.B 'Sorry, no fast mem.',10,10,$00
DC.L $9
DC.W $32
DC.B 'Your prioritie is not a valide decimal number.',10,10,' ',$00
DC.L $A
DC.W $34
DC.B 'Your priorite is lower than fast ram prioritie.',10,10,' ',$00,$00
ENDC ; CATCOMP_BLOCK
;-----------------------------------------------------------------------------
STRUCTURE LocaleInfo,0
APTR li_LocaleBase
APTR li_Catalog
LABEL LocaleInfo_SIZEOF
IFD CATCOMP_CODE
XREF _LVOGetCatalogStr
XDEF _GetString
XDEF GetString
GetString:
_GetString:
lea CatCompBlock(pc),a1
bra.s 2$
1$: move.w (a1)+,d1
add.w d1,a1
2$: cmp.l (a1)+,d0
bne.s 1$
addq.l #2,a1
move.l (a0)+,d1
bne.s 3$
move.l a1,d0
rts
3$: move.l a6,-(sp)
move.l d1,a6
move.l (a0),a0
jsr _LVOGetCatalogStr(a6)
move.l (sp)+,a6
rts
END
ENDC ; CATCOMP_CODE
;-----------------------------------------------------------------------------
ENDC ; CMF_STRINGS_I